package no.group.gowther.service.dto.param;

import java.util.Collections;
import java.util.List;

public class OnePieceUpdateDTO {
    private Long id;
    private List<Long> tagId;
    private String name;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public List<Long> getTagId() {
        return tagId;
    }

    public void setTagId(List<Long> tagId) {
        if (tagId == null) {
            this.tagId = Collections.emptyList();
            return;
        }
        this.tagId = tagId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
